/*
 * @Description:
 * @Author: 崔堂袁
 * @Date: 2021-05-02 18:34:14
 * @LastEditTime: 2021-05-08 19:08:46
 */
const state = {
  _scene: null,
  _camera: null,
  _renderer: null,
  _intersect: null,
  _strScene: null,
  _strCamera: null
}

const getters = {}

const actions = {}

const mutations = {
  updateScene (state, newScene) {
    state._scene = newScene
  },
  updateCamera (state, newCamera) {
    state._camera = newCamera
  },
  updateRenderer (state, newRenderer) {
    state._renderer = newRenderer
  },
  updateIntersect (state, newIntersect) {
    state._intersect = newIntersect
  },
  updateStrScene (state, newStrScene) {
    state._strScene = newStrScene
  },
  updateStrCamera (state, newStrCamera) {
    state._strCamera = newStrCamera
  }
}
export default {
  namespaced: true,
  state,
  getters,
  actions,
  mutations
}
